import { request } from '@umijs/max';

export async function getXCsrfToken(
    params?: any,
    options?: any,
) { 
    return request('/api/getXCsrfToken', {
        method: 'GET',
        headers: {
            'Content-Type': 'application/json',
        },
        params: {
            ...params,
        },
        ...(options || {}),
    });
}
